import Vue from 'vue'
import Element from 'element-ui'
import locale from 'element-ui/lib/locale/lang/zh-CN'
Vue.filter('spliceString', function (val) {
    let red = val.substring(0, 25)
    let res = val.length > 25 ? `${red}...` : val;
    return res;
});
Vue.filter('spliceString2', function (val) {
    let red = val.substring(0, 30)
    let res = val.length > 30 ? `${red}...` : val;
    return res;
});
Vue.use(Element, { locale })
